<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    var info = {
      name:'why',
      age:11,
      height:1.88
    }

    for (const key in info) {
       console.log(`key: ${key}, value: ${info[key]}`);
      
    }
  </script>
</body>
</html>